package com.home.cop.sysinfo.service.impl;

import com.home.cop.sysinfo.mapper.InstituteBusinessMapper;
import com.home.cop.sysinfo.service.InstituteBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class InstituteBusinessServiceImpl implements InstituteBusinessService {

    @Autowired
    private InstituteBusinessMapper businessMapper;

    @Transactional
    @Override
    public void insert(Integer instId, String busiType) {
        businessMapper.insert(instId,busiType);
    }

    @Transactional
    @Override
    public void delete(Integer instId, String busiType) {
        businessMapper.delete(instId,busiType);
    }

    @Transactional
    @Override
    public void deleteAll(Integer instId) {
        businessMapper.deleteAll(instId);
    }
}
